include_directories(..)

add_executable(w1 main.cpp)
link_directories(/path/to/library)